package com.bianqian.demo.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 解密笔记请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DecryptNoteRequest {
    
    @NotNull(message = "笔记ID不能为空")
    private Long id;
    
    @NotBlank(message = "密码不能为空")
    private String password;
}





